package com.ruoyi.passenger.orderevaluate.mapper;

import com.ruoyi.driver.orderevaluate.domain.OrderEvaluateDriver;
import com.ruoyi.passenger.orderevaluate.ro.EditOrderEvaluateHandleParam;
import com.ruoyi.passenger.orderevaluate.ro.OrderEvaluateByOrderIdParam;
import com.ruoyi.passenger.orderevaluate.ro.OrderEvaluateListParam;
import com.ruoyi.passenger.orderevaluate.vo.GetOrderEvaluateHandleVO;
import com.ruoyi.passenger.orderevaluate.vo.OrderEvaluateByOrderIdVO;
import com.ruoyi.passenger.orderevaluate.vo.OrderEvaluateByPassengerIdVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 乘客评价管理
 *
 * @author ruoyi
 * @date 2021-12-01
 */
public interface OrderEvaluateMapper {

    List<OrderEvaluateByPassengerIdVO> getEvaluatelistByPassengerid(@Param("param") OrderEvaluateListParam param);

    OrderEvaluateByOrderIdVO getEvaluatelistByOrderid(@Param("param") OrderEvaluateByOrderIdParam param);

    OrderEvaluateByOrderIdVO getEvaluatelistById(@Param("param") OrderEvaluateByOrderIdParam param);

    int addOrderevaluate(@Param("param") OrderEvaluateDriver param);

    GetOrderEvaluateHandleVO getHandle(Integer orderEvaluateId);

    int editOrderEvaluate(EditOrderEvaluateHandleParam param);

    Integer isEvaluated(Long orderId);

    void deleteByOrderId(Long orderId);
}
